package com.example.demo.constant;




public class ResponseCode {
  //响应码定义:
  public static int GM_SUCCESS = 0x00000000;    //正常返回
  public static int GM_ERROR_BASE = 0x04000000;   //错误码起始值
  public static int GM_ERROR_CERT_ID = 0x04000001;  //错误证书标识
  public static int GM_ERROR_CERT_INFO_TYPE = 0x04000002;   //错误证书信息类型
  public static int GM_ERROR_SERVER_CONNECT = 0x04000003;   //CRL或OCSP服务器无法连接
  public static int GM_ERROR_IGN_METHOD = 0x04000004;   //签名算法类型错误
  public static int GM_ERROR_KEY_INDEX = 0x04000005;   //签名者私钥索引值错误
  public static int GM_ERROR_KEY_VALUE = 0x04000006;   //签名者私钥权限标识码错误
  public static int GM_ERROR_CERT = 0x04000007;   //证书非法或服务器内不存在
  public static int GM_ERROR_CERT_DECODE = 0x04000008;   //证书解析错误
  public static int GM_ERROR_CERT_INVALID_AF = 0x04000009;   //证书过期
  public static int GM_ERROR_CERT_INVALID_BF = 0x0400000A;   //证书尚未生效
  public static int GM_ERROR_CERT_REMOVED = 0x0400000B;   //证书已被吊销
  public static int GM_INVALID_SIGNATURE = 0x0400000C;   //签名无效
  public static int GM_INVALID_DATA_FORMAT = 0x0400000D;  //数据格式错误
  public static int GM_SYSTEM_FALURE = 0x0400000E;  //系统内部错误


  public static int GM_ERROR_METHOD_NOT_SUPPORT = 0x0400000F;  //不支持改方法

  public static int GM_ERROR_VALIDATE_ROOT = 0x04000010;  //根证书验证失败

  public static int GM_ERROR_SIGNCERT_NOT_FOUND = 0x04000011;  //没有找到签名证书

  public static int GM_ERROR_IP_ERROR = 0x04000012;  //改ip地址不允许访问

  public static int GM_ERROR_CRL_LACK = 0x04000013;//CRL文件缺失

  public static void main(String[] args) {

    System.out.println(GM_ERROR_CERT_DECODE);
  }
}


